home *** CD-ROM | disk | FTP | other *** search
- Path: airdmhor.gen.nz!not-for-mail
- From: gumboot@airdmhor.gen.nz (Simon Hosie)
- Newsgroups: comp.lang.c
- Subject: Re: Easiest way to center a string?
- Date: 21 Feb 1996 11:10:07 +1300
- Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
- Message-ID: <4gdgs0$jg6@airdmhor.gen.nz>
- References: <4fobka$1st@parlor.hiwaay.net> <DMqEG5.8z4@eskimo.com> <4frif5$e6p@fohnix.metronet.com> <DMuuzG.1yK@eskimo.com> <4gbmmo$m5v@airdmhor.gen.nz>
- NNTP-Posting-Host: airdmhor.gen.nz
- X-Newsreader: TIN [version 1.2 PL2]
-
- Simon Hosie:
- > printf("%*s\n", (strlen(String - LineLen) / 2, String);
-
- Sorry, make that:
-
- printf("%*s\n", (strlen(String + LineLen)) / 2, String);
-